﻿using CoreEx.Database.Metadata.Generation;
using LinFu.IoC.Configuration;

namespace CoreEx.Database.MetaData.Implementation.Generation
{
    [Implements(typeof(IFieldNameFormatter))]
    public class FieldNameFormatter : IFieldNameFormatter
    {
        public string GetFieldName(string propertyName)
        {
            return string.Format("_{0}{1}", propertyName.Substring(0,1).ToLower() ,propertyName.Substring(1));
        }
    }
}
